const http = require("http");
const urlLib = require("url");

http.createServer(function (req,res) {
	var obj = urlLib.parse(req.url,true);//参数true代表直接解析query,不加不解析
	var url = obj.pathname;
	var GET = obj.query;

	console.log(url,GET);
	res.write("aaa");
	res.end();
}).listen(8080);
